# 登录测试数据
ihrm_longin_data = [
    {
        "data": "登录成功",
        "req_body": {"mobile": "13800000002", "password": "123456"},
        "exp": 200,
        "exp1": True,
        "exp2": 10000,
        "exp3": "成功",
    },

    {
        "data": "登录失败——手机号错误",
        "req_body": {"mobile": "13803300002", "password": "123456"},
        "exp": 200,
        "exp1": False,
        "exp2": 20001,
        "exp3": "错误",
    },

    {
        "data": "登录失败——密码错误",
        "req_body": {"mobile": "13800000002", "password": "123666"},
        "exp": 200,
        "exp1": False,
        "exp2": 20001,
        "exp3": "错误",
    },

    {
        "data": "登录成功——多参",
        "req_body": {"mobile": "13800000002", "password": "123666", "id": 123456},
        "exp": 200,
        "exp1": False,
        "exp2": 20001,
        "exp3": "错误",
    },

    {
        "data": "登录失败——少参",
        "req_body": {"mobile": "13800000002", },
        "exp": 200,
        "exp1": False,
        "exp2": 20001,
        "exp3": "错误",
    },

    {
        "data": "登录失败——请求数据的结构错误",
        "req_body": "{",
        "exp": 200,
        "exp1": False,
        "exp2": 99999,
        "exp3": "系统繁忙",
    },

]

# 添加测试数据
ihrm_add_data = [
    {
        "desc": "添加成功-全部参数",
        "req_body": {"username": "FF", "mobile": "13966660001", "workNumber": "101",
                     "timeOfEntry": "2019-11-30", "formOfEmployment": "1", "departmentId": "1",
                     "correctionTime": "2019-11-30"},
        "exp": 200,
        "exp1": True,
        "exp2": 10000,
        "exp3": "成功",
        "exp4": 1
    },
    {
        "desc": "添加成功-只有必选",
        "req_body": {"username": "FF", "mobile": "13966660002", "workNumber": "102"},
        "exp": 200,
        "exp1": True,
        "exp2": 10000,
        "exp3": "成功",
        "exp4": 1
    }
]

# 查询测试数据
ihrm_query_data=[
    {
        "exp": 200,
        "exp1": True,
        "exp2": 10000,
        "exp3": "成功",
        "exp4": 9876543,
    }
]

# 修改测试数据
ihrm_amend_data = [
    {
        "datay": "修改成功-全部参数",
        "req_body": {"username": "FF", "id": 137871, "departmentId": 2},
        "exp" : 200,
        "success": True,
        "code": 10000,
        "message": "成功",
        "data": {
            "id": 137871,
            "username": "FF",
            "departmentId": 2,
                }
    },
    {
        "datay": "修改成功-数据结构错误",
        "req_body": "{",
        "exp": 200,
        "success": False,
        "code": 99999,
        "message": "系统繁忙",
        "data": {
            "id": None,
            "username": None,
            "departmentId": None,

        }
    }

]

# 删除测试数据
ihrm_delete_data = [
    {
        "desc": "删除成功-员工id存在",
        "id": "3564768",
        "exp": 200,
        "success": True,
        "code": 10000,
        "message": "成功",
    },
    {
        "desc": "删除失败-员工id不存在",
        "id": "98980000",
        "exp": 200,
        "success": False,
        "code": 20004,
        "message": "失败",
    },
    {
        "desc": "删除失败-员工id为汉字",
        "id": "汉字",
        "exp": 200,
        "success": False,
        "exp3": 20004,
        "code": "失败",
    },
    {
        "desc": "删除失败-少参，即没有员工id，为空",
        "id": "",
        "exp": 200,
        "success": False,
        "exp3": 99999,
        "code": "抱歉",
    }
]
